package icu.sehnen.service;

import com.github.pagehelper.PageInfo;
import icu.sehnen.model.UserModel;

import java.util.List;

public interface UserService {

    Integer login(String username,String password);
    Integer  register(UserModel user);
    PageInfo<UserModel> getUsers(Integer pageNum, Integer pageSize, String query);
    Integer swichStats(Long  id,Integer status);
    Integer addUser(UserModel userModel);
    UserModel findUserbyId(Long id);
    Integer deleteUserbyId(Long id);
}
